﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BADDGUI.Utils
{
    public static class StringExtensions
    {
        public static string Right(this string str, int length)
        {
            return str.Substring(str.Length - length, length);
        }

        public static string ToString(this List<string> str, string Delimitor)
        {
            string strResult = "";
            foreach (string strValue in str)
            {
                strResult += (strResult == "" ? "" : Delimitor) + strValue;
            }
            return strResult;
        }
    }
}